
#include <QtGui>
#include <iostream>

#include "MainWindow.h"
#include "AboutWindow.h"

MainWindow::MainWindow(QApplication* app)
{
    this->_app = app;
    this->setupUi(this);

    connect(btn_menu_newGame, SIGNAL(triggered()), this, SLOT(s_newGame()));
    connect(btn_menu_quit, SIGNAL(triggered()), this->_app, SLOT(quit()));
    connect(btn_menu_about, SIGNAL(triggered()), this, SLOT(s_about()));
}

void MainWindow::s_newGame()
{
    std::cout << "new game" << std::endl;
}

void MainWindow::s_about()
{
    AboutWindow w;

    w.exec();
}

